html{
    font-size: 20px;
    font-size: 5.3333vw;
    *{
        margin: 0;
        padding: 0;
    }
    #box{
        width: 18.75rem;
        height: 666px;
        header{
            width: 18.75rem;
            height: 44px;
            background: red;
            display: grid;
            grid-template-columns: 44px auto 44px;
            position: fixed;
            top: 0px;
            #header1{
                width: 44px;
                height: 44px;
                display: flex;
                justify-content: center;
                align-items: center;
                p{
                    width: 25px;
                    height: 25px;
                    background: url(../8-18/images/s-btn.png) no-repeat;
                    background-size: 100%;
                }
            }
            #header2{
                height: 44px;
                display: flex;
                align-items: center;
                input{
                    flex-grow: 1;
                    height: 35px;
                    border-radius: 25px;
                    border: hidden;
                    padding-left: 65px;
                    position: relative;
                }
                p:nth-of-type(1){
                    width: 45px;
                    height: 15px;
                    position: absolute;
                    left: 60px;
                    background: url(../8-18/images/5.png) no-repeat;
                    background-size: 40%;
                }
                p:nth-of-type(2){
                    width: 23px;
                    height: 15px;
                    position: absolute;
                    left: 85px;
                    background: url(../8-18/images/4.png) no-repeat;
                    background-position-x: -79px;
                    background-size: 200px 200px;
                    border-left: 1px solid gainsboro;
                }
            }
            #header3{
                width: 44px;
                height: 50px;
                display: flex;
                justify-content: center;
                align-items: center;
                p{
                    width: 25px;
                    height: 25px;
                    font-size: 12px;
                }
            }
        }
        #next{
            width: 18.75rem;
            height: 4rem;
            background: red;
        }
        #slideshow{
            width: 17.5rem;
            height: 7rem;
            margin: auto;
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            background: rgb(247, 247, 247);
            .slideshow{
                width: 140rem;
                height: 7rem;
                display: flex;
                position: absolute;
                left: -4rem;
                animation: lunbo 30s infinite linear ;
                animation-timing-function: steps(1);
                img{
                    width: 17.5rem;
                    height: 7rem;
                    @keyframes lunbo {
                        0%{
                            margin-left: 0rem;
                        }
                        12%{
                            margin-left: -17.5rem;
                        }
                        25%{
                            margin-left: -35rem;
                        }
                        37%{
                            margin-left: -52.5rem;
                        }
                        50%{
                            margin-left: -70rem;
                        }
                        62%{
                            margin-left: -87.5rem;
                        }
                        75%{
                            margin-left: -105rem;
                        }
                        100%{
                            margin-left: -122.5rem;
                        }
                    }
                }
            }
            
        }
        #slideshow2{
            width: 18.75rem;
            height: 8.1rem;
            display: grid;
            grid-template-columns: repeat(5,3.7rem);
            align-items: center;
            text-align: center;
            margin-top: .5rem;
            div{
                height: 3.75rem;
                a{
                    text-decoration: none;
                    color: black;
                    img{
                        width: 2rem;
                        height: 2rem;
                    }
                    p{
                        font-size: .6rem;
                    }
                }
            }
        }
        #seckill{
            width: 18.75rem;
            height: 8rem;
            margin-top: .55rem;
            background: rgb(247, 247, 247);
            .seckill{
                width: 17.75rem;
                height: 7rem;
                background: white;
                border-radius: .5rem;
                margin: auto;
                position: relative;
                top: .75rem;
                #top{
                    width: 17.75rem;
                    height: 1.7rem;
                    margin: auto;
                    position: relative;
                    span:nth-of-type(1){
                        position: absolute;
                        top: .35rem;
                        font-size: .8rem;
                    }
                    span:nth-of-type(2){
                        position: absolute;
                        top: .25rem;
                        left: 4rem;
                        font-size: .8rem;
                        img{
                            width: 1rem;
                            height: .85rem;
                            position: absolute;
                            left: .75rem;
                        }
                    }
                    span:nth-of-type(3),span:nth-of-type(4),span:nth-of-type(5){
                        position: absolute;
                        width: .75rem;
                        height: .9rem;
                        background: red;
                        border-radius: .25rem;
                        color: white;
                        font-size: .5rem;
                        top: .25rem;
                        left: 8rem;
                    }
                    span:nth-of-type(4){
                        position: absolute;
                        left: 8.9rem;
                    }
                    span:nth-of-type(5){
                        position: absolute;
                        left: 9.8rem;
                    }
                    span:nth-of-type(6){
                        position: absolute;
                        left: 13rem;
                        top: .35rem;
                        font-size: .8rem;
                    }
                    img{
                        width: .55rem;
                        height: .55rem;
                        padding-left: .25rem;
                    }
                }
                #bottom{
                    width: 2.85rem;
                    height: 5.2rem;
                    display: grid;
                    grid-template-columns: repeat(6,2.75rem);
                    gap: .25rem;
                    align-items: center;
                    text-align: center;
                    div{
                        img{
                            width: 2.75rem;
                            height: 2.75rem;
                        }
                        p:nth-of-type(1){
                            font-size: .8rem;
                        }
                        p:nth-of-type(2){
                            color: rgb(222, 225, 230);
                            font-size: .8rem;
                        }
                    }
                }
            }
        }
        #center{
            width: 18.75rem;
            height: 7.5rem;
            background: rgb(247, 247, 247);
            .center{
                width: 17.75rem;
                height: 7rem;
                background: white;
                border-radius: .5rem;
                margin: auto;
                position: relative;
                top: .5rem;
                display: grid;
                grid-template-columns: repeat(2,8.85rem);
                .center1{
                    p:nth-of-type(1){
                        font-size: 1.2rem;
                    }
                    p:nth-of-type(2){
                        font-size: .8rem;
                        color: rgb(102, 103, 113);
                    }
                    img{
                        width: 3rem;
                        height: 3rem;
                        padding-left: .25rem;
                    }
                }
            }
        }
        #last{
            width: 18.75rem;
            height: 13.7rem;
            background: rgb(247, 247, 247);
            .last{
                width: 17.8rem;
                height: 13.7rem;
                margin-left: .5rem;
                position: relative;
                top: 1rem;
                display: grid;
                grid-template-columns: repeat(2,8.65rem);
                gap: .5rem;
                div{
                    background: rgb(255, 255, 255);
                    border-radius: .75rem;
                    img{
                        width: 8.65rem;
                        height: 8.65rem;
                    }
                    p:nth-of-type(1){
                        font-size: .9rem;
                        img{
                            width: 2.35rem;
                            height: .65rem;
                        }
                    }
                    p:nth-of-type(2){
                        padding-top: .5rem;
                        color: red;
                        span{
                            width: 2.3rem;
                            height: 1.1rem;
                            background: rgb(222, 225, 230);
                            color: rgb(247, 247, 247);
                            font-size: .75rem;
                            margin-left: 3rem;
                            border-top-left-radius: 10px;
                            border-bottom-left-radius: 10px;
                        }
                    }
                }
            }
        }
        footer{
            width: 18.75rem;
            height: 2.5rem;
            background: white;
            margin-top: 1rem;
            display: grid;
            grid-template-columns: repeat(5,3.75rem);
            justify-self: center;
            position: fixed;
            bottom: 0px;
            img{
                width: 3rem;
                height: 2.3rem;
                color: rgb(222, 225, 230);
            }
        }
    }
}